package com.maysev.myjob_backend.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author 五七
 * @create 2023-03-17 15:43
 * @description:
 */
@Data
public class Recruiter implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;

    private Long companyId;

    private String username;

    private String nickName;

    private String password;

    private String realName;

    private String gender;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    private String email;

    private String avatar;
    //省
    private String province;

    //市
    private String city;

    //区
    private String district;

    private BigDecimal balance;

    private BigDecimal freezeBalance;

    private String phone;

    private String role;

    private String status;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

}
